package controller;

import java.security.InvalidParameterException;
import java.util.Collection;

/**
 * @author samuel
 *
 * @param <N>
 */
public interface Validator<N> {
	/**
	 * Throws InvalidParameterException
	 * 
	 * @param value
	 */
	public void validate(N value) throws InvalidParameterException;

	
	/**
	 * @param values
	 */
	public void validate(Collection<N> values) throws InvalidParameterException;

	
	/**
	 * @param value
	 */
	public boolean isValid(N value);
}
